package com.hc.conferencecheck.service;

import com.hc.conferencecheck.entity.Conventioner;
import com.hc.conferencecheck.entity.ResultMsg;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.util.Map;

/**
 * 与会者service
 */
public interface ConventionerService {
    /**
     * 查询所有已注册用户
     */
    public ResultMsg selectAllConventioners(Map<String, Object> params);

    /**
     * 修改密码接口
     */
    public ResultMsg editPassWord(Map<String, Object> params, HttpServletRequest request);

    /**
     * 与会者登录接口
     */
    public ResultMsg login(Map<String, Object> params, HttpServletRequest request, HttpServletResponse response);

    /**
     * 与会者注册接口
     */
    public ResultMsg register(Map<String, Object> params, HttpServletRequest request);

    /**
     * 校验手机号，手机号是否符合格式，手机号是否为未注册
     */
    public ResultMsg matchPhoneNumber(Map<String, Object> params);

    /**
     * 根据手机号查询与会者
     */
    public Conventioner getConventionerByPhoneNumber(String phoneNumber);
}
